package com.example.paymentdemo.service;

import java.security.GeneralSecurityException;
import java.util.Map;

/**
 * @Author 上号
 * @Date 2022/5/17 22:14
 * @Version 1.0
 */


public interface WxPayService {
    /**
     * 创建订单，调用Native支付接口
     * @param productId
     * @return code_url 和 订单号
     * @throws Exception
     */

    Map<String, Object> nativePay(Long productId) throws Exception;

    void processOrder(Map<String, Object> mapBody) throws GeneralSecurityException;
}
